package org.beangle.notification

import java.util.Properties
import org.beangle.commons.lang.Assert
import org.beangle.commons.lang.Strings

abstract class AbstractMessage extends Message {

  var subject: String = _

  var text: String = _

  var properties: Properties = new Properties()

  var contentType: String = Message.TEXT

  def setContentType(contentType: String) {
    Strings.contains(contentType, "charset=")
    this.contentType = contentType
  }
}
